/*
 * sso
 */
package com.opensso.core.enums;

/**
 * 性别枚举
 * Created by lixin on 2017/6/7.
 */
public enum SessionEnum {
    ApiKey,/*身份认证*/
    CallToken,/*身份认证*/
    Invalidate,/*注销指令*/
    Authorization,/*身份认证*/
    RefreshToken,/*RefreshToken 刷新token*/
    Token,/*Token*/
    SessionKey,/*会话Key*/
    ClientIp,/*客户端ip*/
    Code,/*账户的编码*/
    Language,/*语言*/
    Session_Expire_Time,/*session过期时间*/
    Account,/*账户*/;


    public static SessionEnum get(String name) {
        for (SessionEnum sessionEnum : SessionEnum.values()) {
            if (sessionEnum.name().equalsIgnoreCase(name)) {
                return sessionEnum;
            }
        }
        return null;
    }


}
